package com.mys.springboot.repostory;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.mys.springboot.config.base.BaseRepository;
import com.mys.springboot.model.User;

import java.util.List;

@Repository
public interface IUserRepository extends BaseRepository<User, Long> {
//    @Query(value="select a from table a where a.name like CONCAT('%',:keyName,'%')",nativeQuery=true)
    List<User> findByName(@Param("keyName")String name);
}